home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
- Path: news.hawaii.edu!phinely
- From: phinely@Hawaii.Edu (Peter Hinely)
- Subject: Re: Will Java kill C++?
- X-Nntp-Posting-Host: uhunix4.its.hawaii.edu
- Message-ID: <Dq3984.KBD@news.hawaii.edu>
- Sender: news@news.hawaii.edu
- Organization: University of Hawaii
- References: <3134D499.653E@ix.netcom.com> <BLUME.96Apr16103345@zayin.cs.princeton.edu> <3175F966.167EB0E7@fernuni-hagen.de> <3176B6C5.F4D@concentric.net>
- Date: Fri, 19 Apr 1996 02:50:28 GMT
-
- In article <3176B6C5.F4D@concentric.net>,
- Alan L. Lovejoy <alovejoy@concentric.net> wrote:
- >
- >The central point of object-oriented programming is...objects. That is,
- >the unification of value and behavior into an encapsulated object.
- >
- >--Alan
-
- Behavior (implemented as methods) need not be encapsulated into objects
- for a language to be object-oriented. This corresponds to real life where
- most objects do not have methods encapsulated into them. Does a ball know
- how to throw itself? No, it is thrown by something else. This can be
- modeled in a language via generic functions which dispatch to the
- appropriate method according to the argument list passed to it.
-
- throw( <ball> )
- throw( <something-else> )
-
-
-
-
-